﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>
    /// 网卡
    /// </summary>
    public class Interface
    {
        /// <summary>
        /// 接口名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 接口描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 是否是无线
        /// </summary>
        public bool Wlan { get; set; }
        /// <summary>
        /// 是否UP
        /// </summary>
        public bool Up { get; set; }
        /// <summary>
        /// 接口ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// IP地址
        /// </summary>
        public string IpAddress { get; set; }
        /// <summary>
        /// IPV6地址
        /// </summary>
        public string IpAddressV6 { get; set; }
        /// <summary>
        /// 子网掩码
        /// </summary>
        public string NetMask { get; set; }
        /// <summary>
        /// 默认网关
        /// </summary>
        public string DefaultGateway { get; set; }
        /// <summary>
        /// DNS1
        /// </summary>
        public string DNS1 { get; set; }
        /// <summary>
        /// DNS2
        /// </summary>
        public string DNS2 { get; set; }
        /// <summary>
        /// 接口配置IP地址的方式
        /// </summary>
        public InterfaceConfigIpMethod InterfaceConfigIpMethod { get; set; }
        
    }
    /// <summary>
    /// 接口配置ip的方式
    /// </summary>
    public enum InterfaceConfigIpMethod
    {
        STATIC, DHCP
    }
}
